//package com.pfm.rule.controller.datasource;
//
//import java.util.List;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.pfm.common.core.domain.R;
//import com.pfm.common.core.web.validate.V_A_E;
//import com.pfm.common.web.entity.controller.BasisController;
//import com.pfm.datasource.dto.SqlConsoleDto;
//import com.pfm.datasource.vo.SqlConsoleVo;
//import com.pfm.rule.service.datasource.SqlConsoleService;
//
///**
//* @ClassName: SqlConsoleController
//* @Description: SQL控制台Controller
//* @author weiyongpeng
//* @date 2024年11月24日 上午10:09:06
// */
//@RestController
//@RequestMapping("/sql")
//public class SqlConsoleController extends BasisController {
//	
//	@Autowired
//    private SqlConsoleService sqlConsoleService;
//
//    @PostMapping("/run")
//    public R<List<SqlConsoleVo>> sqlRun(@RequestBody @Validated SqlConsoleDto sqlConsoleDto){
//        List<SqlConsoleVo> list = sqlConsoleService.sqlRun(sqlConsoleDto);
//        return R.ok(list);
//    }
//
//    @PostMapping("/stop")
//    public R<String> sqlStop(@RequestBody @Validated({V_A_E.class}) SqlConsoleDto sqlConsoleDto){
//        sqlConsoleService.sqlStop(sqlConsoleDto);
//        return R.ok();
//    }
//
//}
